/**
 *
 */
;(function () {
    let values = [1, 2, 3, 4, 5];
    let sum = values.reduce((prev, cur, index, array) => prev + cur);
    console.log(sum); // 15
})()